import {DIC} from "@/store/dictionary";

export const tableOption = {
  height: 'auto',
  calcHeight: 210,
  searchShow: true,
  searchMenuSpan: 6,
  align: "center",
  border: true,
  index: true,
  addBtn: false,
  selection: true,
  indexLabel: "序号",
  column: [
    {
      label: "课程名称",
      prop: "name",
      rules: [{
        required: true,
        message: "请输入课程名称",
        trigger: "blur"
      }]
    },
    {
      label: "教师",
      prop: "teacherId",
      type: "select",
      formslot: true,
      hide: true,
      rules: [{
        required: true,
        message: "请输入教师ID",
        trigger: "blur"
      }]
    },
    {
      label: "教师名称",
      prop: "teacherRealName",
      display: false,
      rules: [{
        required: true,
        message: "请输入教师名称",
        trigger: "blur"
      }]
    },
    {
      label: "成员人数",
      prop: "memberNum",
      type: "number",
      minRows: 0,
      rules: [{
        required: true,
        message: "请输入成员人数",
        trigger: "blur"
      }]
    },
    // {
    //   label: "创建人",
    //   prop: "createUser",
    //   display: false,
    // },
    // {
    //   label: "创建时间",
    //   prop: "createTime",
    //   rules: [{
    //     required: true,
    //     message: "请输入创建时间",
    //     trigger: "blur"
    //   }]
    // },
    // {
    //   label: "修改人",
    //   prop: "updateUser",
    //   rules: [{
    //     required: true,
    //     message: "请输入修改人",
    //     trigger: "blur"
    //   }]
    // },
    // {
    //   label: "修改时间",
    //   prop: "updateTime",
    //   rules: [{
    //     required: true,
    //     message: "请输入修改时间",
    //     trigger: "blur"
    //   }]
    // },
    {
      label: "状态",
      prop: "status",
      type: "select",
      dicData: DIC.courseStatus,
      rules: [{
        required: true,
        message: "请输入状态",
        trigger: "blur"
      }]
    }
  ]
}

export const courseOption = {
  calcHeight: 210,
  searchShow: true,
  searchMenuSpan: 6,
  align: "center",
  tip: false,
  index: true,
  border: true,
  addBtn: false,
  delBtn: false,
  editBtn: false,
  indexLabel: "序号",
  column: [
    {
      label: "课程名称",
      prop: "name",
      rules: [{
        required: true,
        message: "请输入课程名称",
        trigger: "blur"
      }]
    },
    {
      label: "教师名称",
      prop: "teacherRealName",
      rules: [{
        required: true,
        message: "请输入教师名称",
        trigger: "blur"
      }]
    },
    {
      label: "成员人数",
      prop: "memberNum",
      rules: [{
        required: true,
        message: "请输入成员人数",
        trigger: "blur"
      }]
    },
    {
      label: "状态",
      prop: "status",
      type: "select",
      dicData: DIC.courseStatus,
      rules: [{
        required: true,
        message: "请输入状态",
        trigger: "blur"
      }]
    }
  ]
}
